﻿package lobby.exchangeddata
{
	/**
	 * ...
	 * @author Doan Nguyen Thuy Nha Truc (Bamboo)
	 */
	import flash.events.Event;
	import flash.events.EventDispatcher;
	import lobby.events.LobbyEvent;
	import lobby.constants.ConstData;
	import lobby.common.Utility;
	
	public class HistoryInfoDragonTiger extends HistoryInfoBase
	{
		public function HistoryInfoDragonTiger()
		{
			this.gameTypeIndex = 4;
		}
		
		public override function returnSetHistory(result:String):Array
		{
			super.setOdlResult = result;
			var resultArr:Array = new Array();
			
			var numberHistory:int = int(result.substr(ConstData.POS_HIS_RESULT, ConstData.LEN_NUM_HIS));
			var resultStr:String = result.substr((ConstData.POS_HIS_RESULT + ConstData.LEN_NUM_HIS), (ConstData.LEN_VALUE_HIS * numberHistory));
			
			while (resultStr.length >= 2)
			{
				resultArr.push(resultStr.slice(0, 2));
				resultStr = resultStr.slice(2, resultStr.length);
			}
			
			return resultArr;
		}
	}

}